//package com.example.tms.tools;
//
//import org.apache.shiro.authz.UnauthenticatedException;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.web.bind.annotation.ControllerAdvice;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//
///**
// * 异常拦截
// */
//@ControllerAdvice
//public class Handle {
//
//    private final Logger logger = LoggerFactory.getLogger(this.getClass());
//
//    @ExceptionHandler(UnauthenticatedException.class)
//    public void handlerUnauthenticatedException(UnauthenticatedException e){
//        logger.info("捕获异常UnauthenticatedException");
//    }
//
//    @ExceptionHandler(NullPointerException.class)
//    public void handlerNullPointerException(NullPointerException e){
//        logger.info("捕获异常NullPointerException");
//    }
//
//}
